package com.ruoyi.ies.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ies.mapper.SugMassesMapper;
import com.ruoyi.ies.domain.SugMasses;
import com.ruoyi.ies.service.ISugMassesService;

/**
 * 群众反馈Service业务层处理
 * 
 * @author July
 * @date 2023-06-09
 */
@Service
public class SugMassesServiceImpl implements ISugMassesService 
{
    @Autowired
    private SugMassesMapper sugMassesMapper;

    /**
     * 查询群众反馈
     * 
     * @param sugId 群众反馈主键
     * @return 群众反馈
     */
    @Override
    public SugMasses selectSugMassesBySugId(Long sugId)
    {
        return sugMassesMapper.selectSugMassesBySugId(sugId);
    }

    /**
     * 查询群众反馈列表
     * 
     * @param sugMasses 群众反馈
     * @return 群众反馈
     */
    @Override
    public List<SugMasses> selectSugMassesList(SugMasses sugMasses)
    {
        return sugMassesMapper.selectSugMassesList(sugMasses);
    }

    /**
     * 新增群众反馈
     * 
     * @param sugMasses 群众反馈
     * @return 结果
     */
    @Override
    public int insertSugMasses(SugMasses sugMasses)
    {
        return sugMassesMapper.insertSugMasses(sugMasses);
    }

    /**
     * 修改群众反馈
     * 
     * @param sugMasses 群众反馈
     * @return 结果
     */
    @Override
    public int updateSugMasses(SugMasses sugMasses)
    {
        return sugMassesMapper.updateSugMasses(sugMasses);
    }

    /**
     * 批量删除群众反馈
     * 
     * @param sugIds 需要删除的群众反馈主键
     * @return 结果
     */
    @Override
    public int deleteSugMassesBySugIds(Long[] sugIds)
    {
        return sugMassesMapper.deleteSugMassesBySugIds(sugIds);
    }

    /**
     * 删除群众反馈信息
     * 
     * @param sugId 群众反馈主键
     * @return 结果
     */
    @Override
    public int deleteSugMassesBySugId(Long sugId)
    {
        return sugMassesMapper.deleteSugMassesBySugId(sugId);
    }
}
